<?php
//this file can have no extra spaces at the end or will cause an error in the header() function on the admin logn page
$conn = mysql_connect(DB_HOST, DB_USER, DB_PASS) or die                      ('Error connecting to mysql');
mysql_select_db(DB_NAME);
if (!$conn) {
  mysql_close($conn); //Ends the current connection to the database.
  echo "Cannot connect to the database!"; //Display the text inside the quotes.
}
?>